package com.big_data_studio.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * <h2>用户角色关联</h2>
 *
 * @author 彭畅
 * @since 2022-10-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user_role")
public class UserRole implements Serializable {

    /**
     * <h3>版本控制</h3>
     */
    private static final long serialVersionUID = 1L;

    /**
     * <h3>用户角色编号</h3>
     */
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull
    private Integer id;

    /**
     * <h3>用户编号</h3>
     */
    private Integer userId;

    /**
     * <h3>角色编号</h3>
     */
    private Integer roleId;

}
